package designpattern.mvc.v1;
public class Model {//单纯的计算类，不与其他类耦合
 protected int a, b, c;
 public Model() {  this.a = this.b = this.c = 0; }
 public int getOutput() {  return c; }
 public void setInput(int a,int b) {  this.a = a; this.b = b;  }
 public void calculate() {  c = a + b; }
}